#ifndef OS_GUARD
#define OS_GUARD

#ifdef WIN32_PLATFORM 

#include <string>
#include "Window.h"
#include "Win32Window.h"
#include "Render.h"
#include "WGLRender.h"
#include "DXRender.h"


Render* getRender(std::string api, std::string title, int width, int height)
{
	if (api=="GL")
	{
		Win32Window* win32 = new Win32Window();
		win32->init(title,width,height);

		WGLRender* render=new WGLRender(win32->getHWND());
		render->init(16);

		win32->show();

		return render;
	}

	if (api=="DX")
	{
		Win32Window* win32 = new Win32Window();
		win32->init(title,width,height);

		DXRender* render=new DXRender(win32->getHWND());		
		render->init();

		win32->show();

		return render;
	}
}

#endif


#endif